package com.tamtamy.jttamobile.data;


public class Tag implements Comparable<Tag> {

	protected String tagName = null;
	
	public Tag() {
		super();
		this.tagName = null;
	}
	
	public Tag(String tagName) {
		super();
		this.tagName = tagName;
	}
	
	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}

	/*
	@Override
	public String toString() {
		return "Tag [tagName=" + tagName + "]";
	}
	*/
	
	@Override
	public String toString() {
		return tagName;
	}

	/* (non-Javadoc)
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	@Override
	public int compareTo(Tag another) {
		// TODO Auto-generated method stub
		return tagName.compareTo(another.getTagName());
	}
	
	
	
}
